<%@ page import="DOMAIN.Context" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>

<html>
<head>
<title>Liste des contextes</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>	

<div id="topNav" >
<%@ include file="menu.jsp" %>	
</div>
<div id="content"  >
<h2 ><span>Liste des </span>contextes</h2>
    <div id="leftContent">
	<ul>

	<% 
		List<Context> list =  ((List<Context>)request.getAttribute("Contexts"));
		for(Context c :list)
		{
		%>
		<li><a href="DetailContext?id=<%= c.GetId() %>"><%= c.GetName()%></a></li>
		<%
		}

		
	 %>
	</ul>	
	</div>
    <div id="rightContent">
    <h3>Action</h3>    
    <p>
    <ul><li><a href="AddContext" >Ajouter un context</a></li>
    </ul>
    </p>
    </div>
</div>	

</body>
</html>
